package com.zbs.framework.dao.user.repository;

import com.zbs.framework.dao.user.entity.MNBaseUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface BaseUserRepository extends JpaRepository<MNBaseUser, Long>, JpaSpecificationExecutor<MNBaseUser> {

    /**
     * 根据uuid搜索用户
     * @param uuid
     * @return
     */
    MNBaseUser findByAcctUuid(String uuid);

    /**
     * 根据手机号查用户
     * @param phone
     * @return
     */
    List<MNBaseUser> findByPhone(String phone);
}
